<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>JavaScript Test for function compareDateBySystemDate()</title>
<script type="text/javascript" src="../e885DateUtil.js"></script>
<script type="text/javascript">
function doTest()
{
	var dateStr = document.getElementById( 'date' ).value;
	
	alert( 'date:' + dateStr );
	
	var date = transString2Date( dateStr );
	
	var tempValue = compareDateBySystemDate( date );
	
	alert( 'compare value:' + tempValue );
}
</script>
</head>

<body>
<p>JavaScript Tes for function compareDateBySystemDate()</p>
<p>和系統日期比較( 不比較時分秒 )</p>
<p>1: 大於系統日期</p>
<p>0: 等於系統日期</p>
<p>-1: 小於系統日期</p>

<input type="text" size="10" id="date">ex:20070101, 2007/01/01
<br>
<input type="button" value="測試" onclick="doTest()">
</body>
</html>